<script>
    var uploadJson = '{:url("api/v1/upload", ["path" => session("userid", "", session_prefix()), "module" => request()->module() ?: "addons"])}';
    var fileManagerJson = '{:url("api/v1/filemanager", ["sub_path" => session("userid", "", session_prefix()), "module" => request()->module() ?: "addons"])}';
</script>